package com.jiangjiang.eshop.commodity.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @ClassName GoodsEntity
 * @Description TODO
 * @Author jhw
 * @Date 2021/7/9 16:21
 * @Version 1.0
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("commodity_goods")
public class GoodsEntity {
    /**
     * 主键id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 类目id
     */
    @TableField("category_id")
    private Long categoryId;

    /**
     * 品牌id
     */
    @TableField("brand_id")
    private Long brandId;

    /**
     * 商品编码
     */
    @TableField("code")
    private String code;

    /**
     * 商品名称
     */
    @TableField("name")
    private String name;

    /**
     * 商品副名称
     */
    @TableField("sub_name")
    private String subName;

    /**
     * 商品毛重
     */
    @TableField("gross_weight")
    private Double grossWeight;

    /**
     * 商品长度
     */
    @TableField("length")
    private Double length;

    /**
     * 商品宽度
     */
    @TableField("width")
    private Double width;

    /**
     * 商品高度
     */
    @TableField("height")
    private Double height;

    /**
     * 商品状态
     */
    @TableField("status")
    private Integer status;
    /**
     * 服务保证
     */
    @TableField("service_guarantees")
    private String serviceGuarantees;
    /**
     * 包装清单
     */
    @TableField("package_list")
    private String packageList;
    /**
     * 运费模板id
     */
    @TableField("freight_template_id")
    private Long freightTemplateId;
    /**
     * 创建时间
     */
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private Date gmtCreate;
    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

}
